<style>
.mix {padding:0px 5px;}
</style>
		<div class="ui-portlet">
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li class="active">我的机器人</li>
			</ol>
		</div>
       <hr>
       <div class="mb10">
       	<a class="btn btn-primary" href="{{$this->Html->url(array('action'=>'newBotMessage',random_str(12) ))}}">新增机器人</a>
       	
       </div>
       <br/>
       <div class="alert alert-warning">
		提示：
			<p style="text-indent:2em;">机器人通过微信网页版接口登录，可在多微信群中同时发消息。</p>
			<p style="text-indent:2em;">请将微信群保存到微信通讯录，设置好群名称，登录机器人后不修改群名称</p>
		</div>  
       <div class="ui-portlet">
	       <div class="row clearfix ui-portlet-list" id="storefront-list">
	       {{loop $datalist $item}}
	       	<div class="col-md-4 mix">
	       		<div class="appmsg">
		       		<div class="appmsg_content">
			       		<h4><a href="{{$this->Html->url('/bots/view/'.$item['BotMessage']['id'])}}" target="_blank">{{$item['BotMessage']['message']}}</a></h4>

			       		
			       		<p>在线状态：{{if $item['BotMessage']['status']}}已发送{{else}}未发送{{/if}}</p>
			       		
			       		<p>机器人编号：{{$item['BotMessage']['bot_id']}}</p>
			       		<p>群编号：{{$item['BotMessage']['bot_group_id']}}</p>
			       		<p><a href="/bots/view/{{$item['BotMessage']['bot_id']}}" class="btn btn-primary">查看机器人</a></p>
			       		
			       		
			       		<p>创建于：{{substr($item['BotMessage']['created'],5,11)}}</p>

		       		</div>
		       		<div class="appmsg_opr clearfix">
		       			{{$this->Html->link('<i data-toggle="tooltip" data-placement="top" title="编辑表单名称、封面及描述" class="fa fa-edit"></i>', array('controller'=>'bots','action' => 'edit', $item['BotMessage']['id']),array('class'=>'col-xs-6 opr-edit','escape'=>false))}}
		       			
		       			
		       			<a href="javascript:void(0)" data-url="{{$this->Html->url('/bots/delete/'.$item['BotMessage']['id'])}}" class="col-xs-6 delete-pop" data-placement="bottom" data-content="确定删除此素材？"><i data-toggle="tooltip" data-placement="top" 
		       			 title="{{__('Delete')}}" class="fa fa-trash"></i></a>
		       			 
		       			 <!-- {{$this->Html->link('', array('controller'=>'wx_msgs','action' => 'delete', $item['BotMessage']['id']),array('class'=>'col-xs-6','escape'=>false))}}
		       			  -->
		       		</div>
	       		</div>
	       	</div>
	  		{{/loop}}
	    	</div>
	    	<div>{{$page_navi}}</div>
    	</div>